package com.luxx.dao;

import com.luxx.entity.Score;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by luxx
 * 2017-11-03 23:17
 */
public interface ScoreDao extends JpaRepository<Score, Long>{

    List<Score> findAllByUserId(long userId);

    List<Score> findAllByAdminId(long adminId);
}
